/**
 * @(#)MonitorFlagDaoImpl.java 2017年5月5日
 * Copyright(C) 2017年5月5日 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;


import java.util.List;

import org.jsbd.boss.dao.IMonitorFlagDao;
import org.jsbd.boss.domian.monitor.MonitorFlagBean;
import org.jsbd.boss.domian.monitor.MonitorFlagLogBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import edu.hziee.common.dbroute.BaseDAO;

/**
 * TODO 请加入本类的说明
 * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
 * @version 1.0.0
 */
@Repository("monitorFlagDao")
public class MonitorFlagDaoImpl extends BaseDAO implements IMonitorFlagDao {
	public static final Logger LOGGER = LoggerFactory.getLogger(MonitorFlagDaoImpl.class);

	
	@Override
	public List<MonitorFlagBean> getMonitorFlagBeanByType(int type) {
		return super.queryForList("monitor_flag.select_monitor_flag_by_type", type);
	}
	
	@Override
	public void updateMonitorFlagBeanFlag(List<MonitorFlagBean> monitorFlagList) {
		super.batchUpdate("monitor_flag.update_monitor_flag_flag", monitorFlagList);
	}

	@Override
	public void saveMonitorFlagLog(List<MonitorFlagBean> mointorFlagList) {
        super.batchInsert("monitor_flag.save_monitor_flag_log", mointorFlagList);
	}
}
